package com.powernode.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 内容:
 * 作者: cy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@RefreshScope
public class WxTokenProperties {

    @Value("${wx.appid}")
    private String appId;

    @Value("${wx.appsecret}")
    private String appSecret;

    @Value("${wx.tokenurl}")
    private String tokenUrl;

}
